<style>
.btns{ border:1px solid; display:inline-block; cursor :pointer;}
.hiddens{display:none!important;  }
</style>
<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/exercise/index/index">剑雅真题</a> <span class="divider">/</span></li>
        <li class="active">banner管理</li>
    </ul>
    <a class="btn btn-primary" href="/exercise/banner/update">添加</a>
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="80">ID</th>
                <th>名称</th>
                <th>typeid</th>
                <th >图片1</th>
                <!-- <th >图片1链接</th> -->
                <th >图片2</th>
                <!-- <th >图片2链接</th> -->
                <th >操作</th>
            </tr>
            </thead>
            <tbody>
            <?php
                foreach($data as $v) {
                    ?>
                    <tr>
                        <td><span><?php echo $v['id']?></span></td>
                        <td><span><?php echo $v['name']?></span></td>
                        <td><span><?php echo $v['typeid']?></span></td>
                        <td><span><?php echo $v['image1']?></span></td>
                        <!-- <td><span><?php echo $v['image_url1']?></span></td> -->
                        <td><span><?php echo $v['image2']?></span></td>
                        <!-- <td><span><?php echo $v['image_url2']?></span></td> -->
                        <td>
                            <div>
                                    <a class="btn" href="<?php echo baseUrl ?>/exercise/banner/update?id=<?php echo $v['id'] ?>">修改</a>
                                
                            </div>
                        </td>
                    </tr>

                    <?php
                }
                ?>
            </tbody>
        </table>
</div>



